package com.ddpt.permission.export;

import com.lh.center.common.export.ExportAppEnum;
import com.lh.center.common.export.ExportQueryService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class ExportFactory {

    @Resource(name = "roleExportService")
    private ExportQueryService roleExportService;

    @Resource(name = "adminUserExportService")
    private ExportQueryService adminUserExportService;

    public ExportQueryService getService(ExportAppEnum appEnum) {
        switch (appEnum) {
            case roleExport:
                return roleExportService;
            case adminUserExport:
                return adminUserExportService;
        }
        return null;
    }


}
